package com.elitel.frame.core.onloadjar;


import java.lang.reflect.Field;  

public class SortableField {
	
	public SortableField(){}    
    
    public SortableField(FieldMeta meta, Field field) {    
        super();    
        this.meta = meta;    
        this.field = field;   
        this.name=field.getName();        
        this.type=field.getType();    
    }    
        
    public SortableField(FieldMeta meta, Field field, int length) {    
        super();    
        this.meta = meta;    
        this.field = field;   
        this.name=field.getName();        
        this.type=field.getType();   
        this.length=length;  
    }   
      
    public SortableField(FieldMeta meta, String name, int length, Class<?> type) {    
        super();    
        this.meta = meta;    
        this.name = name;   
        this.length = length;  
        this.type = type;    
    }    
    
    
    private FieldMeta meta;    
    private Field field;    
    private String name;    
    private int length;  
    public int getLength() {  
        return length;  
    }  
  
    public void setLength(int length) {  
        this.length = length;  
    }  
  
  
    private Class<?> type;    
        
    public FieldMeta getMeta() {    
        return meta;    
    }    
    public void setMeta(FieldMeta meta) {    
        this.meta = meta;    
    }    
    public Field getField() {    
        return field;    
    }    
    public void setField(Field field) {    
        this.field = field;    
    }    
    public String getName() {    
        return name;    
    }    
    public void setName(String name) {    
        this.name = name;    
    }        
         
    public Class<?> getType() {    
        return type;    
    }     
    public void setType(Class<?> type) {    
        this.type = type;    
    }   
}
